package vos.vn;

import android.app.Activity;
import android.app.AlertDialog;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Message;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;

public class SongsActivity extends Activity {
	private ListView lv1;
	private String lv_arr[]={"Android","iPhone","BlackBerry","AndroidPeople"};
	
    public void onCreate(Bundle savedInstanceState) {
    	super.onCreate(savedInstanceState);
    	setContentView(R.layout.tab);
    	lv1=(ListView)findViewById(R.id.listView1);
    	// By using setAdpater method in listview we an add string array in list.
    	//lv1.setAdapter(new ArrayAdapter<String>(this,R.layout.list_item , lv_arr));
    	 String[] countries = getResources().getStringArray(R.array.countries_array);
    	 lv1.setAdapter(new ArrayAdapter<String>(this, R.layout.list_item, countries));
    	 	
    }
}